<%@page import="fu.abc.DAO.LocationDAO"%>
<%@page import="fu.abc.model.Location"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link href="css/style.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="css/error.css" media="screen" rel="stylesheet" type="text/css" />
	
	<link href="./end-user/css/style.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="./end-user/css/error.css" media="screen" rel="stylesheet" type="text/css" />
	<title>Vnplace - Báo cáo lỗi</title>
	<style type="text/css">
		i{
			color: 	#0000FF;
		}
		#show-success{
			border: 1px solid #6666CC;
			width: 500px;
			height: 50px;
			background: #D5FFCE;
			margin-left: 200px;
			margin-bottom: 10px;
			margin-top: 10px;
			border-radius: 10px;
		}
		ul#ul-success{
			list-style: none;
		}
		ul#ul-success li{
			float: left;
		}
		.success{
			margin-top: 15px;
		}
	</style>
</head>
<body>
	<div id="wrap-container">
		<div id="header-menu">
			<form action="/Vnplace/SearchLocation" method="post">
			<ul id="top-menu">
				<li class="li-brand"><a href="/Vnplace/end-user/homepage.jsp"><img alt=""
						src="./end-user/image/logo.jpg" width="90px" height="80px;"></a></li>
				
				<li><select class="province" name="province">
						<option value="null" selected="selected">----- Tỉnh -----</option>
						<option value="1">An Giang</option>
						<option value="2">B&#224; Rịa Vũng T&#224;u</option>
						<option value="3">Bắc Giang</option>
						<option value="4">Bắc Kạn</option>
						<option value="5">Bạc Li&#234;u</option>
						<option value="6">Bắc Ninh</option>
						<option value="7">Bến Tre</option>
						<option value="8">B&#236;nh Định</option>
						<option value="9">B&#236;nh Dương</option>
						<option value="10">B&#236;nh Phước</option>
						<option value="11">B&#236;nh Thuận</option>
						<option value="12">C&#224; Mau</option>
						<option value="13">Cần Thơ</option>
						<option value="14">Cao Bằng</option>
						<option value="15">Đ&#224; Nẵng</option>
						<option value="16">Đắk Lắk</option>
						<option value="17">Đăk N&#244;ng</option>
						<option value="18">Điện Bi&#234;n</option>
						<option value="19">Đồng Nai</option>
						<option value="20">Đồng Th&#225;p</option>
						<option value="21">Gia Lai</option>
						<option value="22">H&#224; Giang</option>
						<option value="23">H&#224; Nam</option>
						<option value="24">H&#224; Nội</option>
						<option value="25">H&#224; Tĩnh</option>
						<option value="26">Hải Dương</option>
						<option value="27">Hải Ph&#242;ng</option>
						<option value="28">Hậu Giang</option>
						<option value="29">H&#242;a B&#236;nh</option>
						<option value="30">Hưng Y&#234;n</option>
						<option value="31">Kh&#225;nh H&#242;a</option>
						<option value="32">Ki&#234;n Giang</option>
						<option value="33">Kon Tum</option>
						<option value="34">Lai Ch&#226;u</option>
						<option value="35">L&#226;m Đồng</option>
						<option value="36">Lạng Sơn</option>
						<option value="37">L&#224;o Cai</option>
						<option value="38">Long An</option>
						<option value="39">Nam Định</option>
						<option value="40">Nghệ An</option>
						<option value="41">Ninh B&#236;nh</option>
						<option value="42">Ninh Thuận</option>
						<option value="43">Ph&#250; Thọ</option>
						<option value="44">Ph&#250; Y&#234;n</option>
						<option value="45">Quảng B&#236;nh</option>
						<option value="46">Quảng Nam</option>
						<option value="47">Quảng Ng&#227;i</option>
						<option value="48">Quảng Ninh</option>
						<option value="49">Quảng Trị</option>
						<option value="50">S&#243;c Trăng</option>
						<option value="51">Sơn La</option>
						<option value="52">T&#226;y Ninh</option>
						<option value="53">Th&#225;i B&#236;nh</option>
						<option value="54">Th&#225;i Nguy&#234;n</option>
						<option value="55">Thanh H&#243;a</option>
						<option value="56">Th&#224;nh Phố Hồ Ch&#237; Minh</option>
						<option value="57">Thừa Thi&#234;n Huế</option>
						<option value="58">Tiền Giang</option>
						<option value="59">Tr&#224; Vinh</option>
						<option value="60">Tuy&#234;n Quang</option>
						<option value="61">Vĩnh Long</option>
						<option value="62">Vĩnh Ph&#250;c</option>
						<option value="63">Y&#234;n B&#225;i</option>
				</select></li>
				<li class="li-search">
						<input name="txtsearch" class="txt-search" type="text" placeholder="       Nhập địa điểm cần tìm kiếm...">
						<input type="submit" class="btn" value="Tìm kiếm" />
				</li>
				<li class="li-add"><img src="./end-user/image/add.png" width="25" height="25"></li>
				<li class="li-2"><a href="/Vnplace/end-user/createlocal.jsp">Tạo địa điểm</a></li>
				<li class="li-3"><a href="/Vnplace/end-user/introduce.jsp">Giới thiệu</a></li>
				<li class="li-4"><a href="/Vnplace/end-user/contact.jsp">Liên hệ</a></li>
			</ul>
			</form>
		</div>

		<div id="content">
			<div id="left"></div>
			<div id="content-between">
				<div id="time">
					<a href="">Chùa một cột</a> > <a href="">Báo cáo lỗi</a>
				</div>
<!-- 				<hr/> -->
				<div id="title">
					<h1 align="center">Báo lỗi hệ thống</h1>
				</div>
<!-- 				<hr style="width: 800px; margin-left: 150px;"/> -->
				<p class="title-error">
					Hệ thống của chúng tôi vẫn còn nhiều vấn đề sai xót trong quá trình
					phát triển. Nếu có vấn đề sai xót hoặc không đúng<br /> Mong các
					bạn báo cáo cho chúng tôi để chúng tôi hoàn chỉnh tốt hơn
				</p>
				<form action="/Vnplace/ReportError" method="post" class="myForm">
					<fieldset>
						<legend>Báo cáo lỗi</legend>
						
						<%
							Object a = request.getAttribute("mess");
							if(a!=null){
						%>
								<div id="show-success">
									<ul id="ul-success">
										<li> <img src="end-user/image/tich.png" alt="" width="40px" height="40px" style="margin-left: 10px;margin-top: 5px;"/> </li>
										<li><p class="success">
												<%=a.toString() %>
										</p></li>
									</ul>
								</div>
						<%
						}
							int id = Integer.parseInt(request.getParameter("id"));
							Location local = new Location();
							LocationDAO localdao = new LocationDAO();
							local = localdao.getLocalNew(id);
						%>
						
						<input type="hidden" name="id" value="<%=id%>">
						<label>Tên lỗi: </label>
						<input type="text" class="txtLocal" name="errorname" size="30" style="margin-bottom: 10px;"/> 
						<br/>
						<label>Tên địa điểm: </label><i><%=local.getLocationName() %></i>
						<input type="hidden" class="txtLocal" name="localname" size="30" value="<%=local.getLocationName() %>" disabled="disabled"/> <br/>
						<br />
						<label>Nhóm địa điểm: </label><i><%=local.getCategory()%></i>
						<input type="hidden" class="category" name="category" size="30" value="<%=local.getCategory()%>" disabled="disabled"/><br/>
						<br/>
						<label>Địa chỉ: </label><i><%=local.getAddressDetail()%></i>
						<input type="hidden" class="txtAddress" name="address" size="40" value="<%=local.getAddressDetail()%>" disabled="disabled"/> <br/>
						 <br /> 
						<label>Nội dung báo cáo:</label><br />
						<textarea rows="15" cols="80" class="areaContent" name="contentError"></textarea>
						<br /> 
<!-- 						<input type="hidden" name="idlocal"> -->
						<input type="submit" class="submitbutton" value="Gửi báo lỗi" />
						<input type="submit" class="cancelbutton" value="Hủy bỏ" />
					</fieldset>
				</form>
			</div>
			<div id="right"></div>
		</div>
		<div id="footer">
			<ul id="footer-menu">
				<li><a href="/Vnplace/end-user/homepage.jsp">Trang chủ</a></li>
				<li><a href="/Vnplace/end-user/createlocal.jsp">Tạo địa điểm mới</a></li>
				<li><a href="/Vnplace/end-user/introduce.jsp">Giới thiệu</a></li>
				<li><a href="/Vnplace/end-user/contact.jsp" class="li-3">Liên hệ</a></li>
			</ul>
			<p class="copyright">©Copyright 2014 VnPlace.vn</p>
		</div>
	</div>
</body>
</html>